<template>
  <div class="content">
    <div class="item" v-for="item in ElIconModules" :key="item.name">
      <el-icon :size="40">
        <component :is="item" />
      </el-icon>
      <div class="itemName">{{ item.name }}</div>
    </div>
  </div>
</template>
<script setup lang="ts">
import * as ElIconModules from '@element-plus/icons-vue'
</script>
<style scoped>
.content {
  width: 100%;
  height: 100%;
  /* margin: 20px; */
  /* padding: 20px; */
  display: flex;
  flex-wrap: wrap;
  /* justify-content: space-around; */
  column-gap: 30px;
  row-gap: 30px;
  .item {
    width: 100px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    .itemName {
      width: 100%;
      font-size: 14px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
  }
}
</style>
